﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000249 RID: 585
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueInfo : IMessage<ChessRogueInfo>, IMessage, IEquatable<ChessRogueInfo>, IDeepCloneable<ChessRogueInfo>, IBufferMessage
	{
		// Token: 0x170007C2 RID: 1986
		// (get) Token: 0x06001A78 RID: 6776 RVA: 0x0004C65D File Offset: 0x0004A85D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueInfo> Parser
		{
			get
			{
				return ChessRogueInfo._parser;
			}
		}

		// Token: 0x170007C3 RID: 1987
		// (get) Token: 0x06001A79 RID: 6777 RVA: 0x0004C664 File Offset: 0x0004A864
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170007C4 RID: 1988
		// (get) Token: 0x06001A7A RID: 6778 RVA: 0x0004C676 File Offset: 0x0004A876
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueInfo.Descriptor;
			}
		}

		// Token: 0x06001A7B RID: 6779 RVA: 0x0004C67D File Offset: 0x0004A87D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueInfo()
		{
		}

		// Token: 0x06001A7C RID: 6780 RVA: 0x0004C688 File Offset: 0x0004A888
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueInfo(ChessRogueInfo other) : this()
		{
			this.scene_ = ((other.scene_ != null) ? other.scene_.Clone() : null);
			this.lineup_ = ((other.lineup_ != null) ? other.lineup_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001A7D RID: 6781 RVA: 0x0004C6E4 File Offset: 0x0004A8E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueInfo Clone()
		{
			return new ChessRogueInfo(this);
		}

		// Token: 0x170007C5 RID: 1989
		// (get) Token: 0x06001A7E RID: 6782 RVA: 0x0004C6EC File Offset: 0x0004A8EC
		// (set) Token: 0x06001A7F RID: 6783 RVA: 0x0004C6F4 File Offset: 0x0004A8F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneInfo Scene
		{
			get
			{
				return this.scene_;
			}
			set
			{
				this.scene_ = value;
			}
		}

		// Token: 0x170007C6 RID: 1990
		// (get) Token: 0x06001A80 RID: 6784 RVA: 0x0004C6FD File Offset: 0x0004A8FD
		// (set) Token: 0x06001A81 RID: 6785 RVA: 0x0004C705 File Offset: 0x0004A905
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LineupInfo Lineup
		{
			get
			{
				return this.lineup_;
			}
			set
			{
				this.lineup_ = value;
			}
		}

		// Token: 0x06001A82 RID: 6786 RVA: 0x0004C70E File Offset: 0x0004A90E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueInfo);
		}

		// Token: 0x06001A83 RID: 6787 RVA: 0x0004C71C File Offset: 0x0004A91C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueInfo other)
		{
			return other != null && (other == this || (object.Equals(this.Scene, other.Scene) && object.Equals(this.Lineup, other.Lineup) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001A84 RID: 6788 RVA: 0x0004C770 File Offset: 0x0004A970
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.scene_ != null)
			{
				num ^= this.Scene.GetHashCode();
			}
			if (this.lineup_ != null)
			{
				num ^= this.Lineup.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001A85 RID: 6789 RVA: 0x0004C7C2 File Offset: 0x0004A9C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001A86 RID: 6790 RVA: 0x0004C7CA File Offset: 0x0004A9CA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001A87 RID: 6791 RVA: 0x0004C7D4 File Offset: 0x0004A9D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.scene_ != null)
			{
				output.WriteRawTag(74);
				output.WriteMessage(this.Scene);
			}
			if (this.lineup_ != null)
			{
				output.WriteRawTag(106);
				output.WriteMessage(this.Lineup);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001A88 RID: 6792 RVA: 0x0004C830 File Offset: 0x0004AA30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.scene_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Scene);
			}
			if (this.lineup_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Lineup);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001A89 RID: 6793 RVA: 0x0004C888 File Offset: 0x0004AA88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.scene_ != null)
			{
				if (this.scene_ == null)
				{
					this.Scene = new SceneInfo();
				}
				this.Scene.MergeFrom(other.Scene);
			}
			if (other.lineup_ != null)
			{
				if (this.lineup_ == null)
				{
					this.Lineup = new LineupInfo();
				}
				this.Lineup.MergeFrom(other.Lineup);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001A8A RID: 6794 RVA: 0x0004C908 File Offset: 0x0004AB08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001A8B RID: 6795 RVA: 0x0004C914 File Offset: 0x0004AB14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 74U)
				{
					if (num != 106U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.lineup_ == null)
						{
							this.Lineup = new LineupInfo();
						}
						input.ReadMessage(this.Lineup);
					}
				}
				else
				{
					if (this.scene_ == null)
					{
						this.Scene = new SceneInfo();
					}
					input.ReadMessage(this.Scene);
				}
			}
		}

		// Token: 0x04000B14 RID: 2836
		private static readonly MessageParser<ChessRogueInfo> _parser = new MessageParser<ChessRogueInfo>(() => new ChessRogueInfo());

		// Token: 0x04000B15 RID: 2837
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000B16 RID: 2838
		public const int SceneFieldNumber = 9;

		// Token: 0x04000B17 RID: 2839
		private SceneInfo scene_;

		// Token: 0x04000B18 RID: 2840
		public const int LineupFieldNumber = 13;

		// Token: 0x04000B19 RID: 2841
		private LineupInfo lineup_;
	}
}
